package day09demo;

public class ExtendsTest {
    public static void main(String[] args) {
        Student s = new Student();
        s.name = "惠惠";
        s.age = 18;
        s.address = "红魔村";
        s.className = "2101";
        s.stuId = "01";

        s.eat();
        s.sleep();
        s.sayHi();
        s.study();
    }
}
